package sso.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.security.core.userdetails.User;

import java.util.Map;

@Mapper
public interface LoginMapper {
   // @Select("select *form sys_user where username=#{username}")
   // public User selectUserByUsername(String username);
     /*基于用户条件进行查询
     * */
    @Select("select * from sys_user where username=#{username}")
       Map<String,Object> selectUserByUsername(
               @Param("username") String username);


    /*j基于用户id查询用户的权限信息*/


}
